/**
 * @author xialeistudio
 * @date 2016/5/9 0009
 */
'use strict';
require('should');
describe('test shared-manager-mysql', function() {
	this.timeout(3000);
	const sharedManger = require('../shared-manager/mysql');
	it('activity user_id should equal\'oYTgBuITFr_rlDTx7VLiPvrt-D_s\'', (done)=> {
		sharedManger().then((conn)=> {
			return conn.queryAsync('SELECT user_id FROM qy_activity WHERE activity_id = ?', ['f06750']).then((rows)=> {
				rows[0].user_id.should.be.equal('oYTgBuITFr_rlDTx7VLiPvrt-D_s');
				conn.release();
				done();
			});
		}).catch(done);
	});
});